﻿@model WebSiteFool.Models.PictureFile
@{
    ViewBag.Title = "Upload Picture";
}
<div>
    @using (Html.BeginForm("Create", "Picture", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        @Html.AntiForgeryToken()
        <fieldset>
            <ul>
                <li>
                    @Html.LabelFor(m => m.Name)
                    @Html.TextBoxFor(m => m.Name)
                    @Html.ValidationMessageFor(m => m.Name)
                </li>
                <li>
                    @Html.LabelFor(m => m.File)
                    @Html.TextBoxFor(m => m.File, new { type = "file" })
                    @Html.ValidationMessageFor(m => m.File)
                </li>
            </ul>
            <input type="submit" value="Create" class="submit-button" />
        </fieldset>
    }
</div>
